ex7c_VLAN + EtherChannel

ex7c VLAN + EtherChannel

Router

R1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
enable
configure terminal
hostname R1
no ip domain-lookup
interface fa 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
interface fa 0/1
ip address 192.168.2.1 255.255.255.0
no shutdown
interface se 0/3/0
ip address 10.255.255.6 255.255.255.248
clock rate 1000000
no shutdown
exit
router ospf xy
router-id 1.1.1.1
network 192.168.1.0 0.0.0.255 area xy
network 192.168.2.0 0.0.0.255 area xy
network 10.255.255.6 0.0.0.7 area xy
exit
exit
copy r s

R2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
enable
configure terminal
hostname R2
no ip domain-lookup
interface fa 0/0
ip address 88.88.88.126 255.255.255.128
no shutdown
interface se 0/2/0
ip address 10.255.255.5 255.255.255.248
clock rate 1000000
no shutdown
exit
router ospf xy
network 10.255.255.5 0.0.0.7 area xy
network 88.88.88.0 0.0.0.127 area xy
exit
exit
copy r s

Switch

SW1A

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
enable
configure terminal
hostname SW1A
no ip domain-lookup
interface range fa 0/1-4
switchport mode access
switchport access vlan 1xy
channel-group 1 mode on
interface port-channel 1
switchport mode access
switchport access vlan 1xy
interface range fa 0/5-24
switchport mode access
switchport access vlan 1xy
exit
exit
copy r s

SW0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
enable
configure terminal
hostname SW0
no ip domain-lookup
interface range fa 0/1-4
switchport mode access
switchport access vlan 1xy
channel-group 1 mode on
interface port-channel 1
switchport mode access
switchport access vlan 1xy
interface range fa 0/5-xy
switchport mode access
switchport access vlan 1xy
interface range fa 0/9-16
switchport mode access
switchport access vlan 2xy
interface range fa 0/17-24
switchport mode access
switchport access vlan 3xy
exit
exit
copy r s
文章目錄
  1. 1. Router
    1. 1.1. R1
    2. 1.2. R2
  2. 2. Switch
    1. 2.1. SW1A
    2. 2.2. SW0
,